package com.cdl.utils;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class PropertyUtil {
	
public static Properties properties;
	
//private static String path = PathUtil.class.getResource("resources/config.properties").getPath();
	private static String path = System.getProperty("user.dir")+"/config.properties";
	
    public static Properties InitProp(){
		properties = new Properties();
		try {
			properties.load(new FileInputStream(path));
		} catch (IOException e) {
			System.err.println("PropertyUtil加载配置文件出错:"+e.getLocalizedMessage());
		}	
		return properties;
	}

	

	
}
